<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

global $conf;

$conf['server'] = 'localhost';
$conf['db'] = 'MainDB';
$conf['user'] = 'root';
$conf['password'] = 'deadass';
$conf['debug'] = true;

function debug($e)
{
    if ($conf['debug'] == true)
    {
        print ($e.getTraceAsString());
    }
}

try {
    $conf['connection'] = mysql_connect($conf['server'],
        $conf['user'], $conf['password']);
    mysql_select_db($conf['db'], $conf['connection']);

}catch (Exception $e)
{
    debug($e);
}

?>
